package com.woniuxy.common.entity;

import com.github.houbb.sensitive.annotation.Sensitive;
import com.github.houbb.sensitive.core.api.strategory.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CenterUser implements Serializable {
    private static final long serialVersionUID = -4962553358543762803L;
    private String id;
    @Sensitive(strategy = StrategyChineseName.class)
    private String name;

    private String nickname;

    private String intro;

    private String photo;

    private String forumId;
    @Sensitive(strategy = StrategyPhone.class)
    private String phone;
    @Sensitive(strategy = StrategyPassword.class)
    private String password;

    private Byte centerAccountstatus;
    @Sensitive(strategy = StrategyCardId.class)
    private String centerCredentialcode;
    @Sensitive(strategy = StrategyPassword.class)
    private String centerVerifydata;

    private Byte centerUsertype;

    private Date date;

    private Date centerUpdatetime;
    @Sensitive(strategy = StrategyEmail.class)
    private String email;
    @Sensitive(strategy = StrategyPassword.class)
    private Integer coin;
    @Sensitive(strategy = StrategyPassword.class)
    private String salt;


}